package com.xinzi.apartment.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author xinzi
 * @email 1228604898@qq.com
 * @date 2021-10-04 17:16:18
 */
@Data
@TableName("building_info")
public class BuildingInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId
	private Integer id;
	/**
	 * 公寓楼号
	 */
	private Integer flatNo;
	/**
	 * 楼层数
	 */
	private Integer floorNum;
	/**
	 * 房间数
	 */
	private Integer roomNum;
	/**
	 *
	 */
	private Integer flag;
	/**
	 * 启用时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
	private Date beginUseTime;
	/**
	 * 记录创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 记录修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

}
